.icon-button {
  background-color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  user-select: none;
  outline: none;
  border: none;
  color: var(--black);
  user-select: none;
  &[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
  }

  &.primary {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;

    svg {
      filter: none;
      path,
      circle,
      rect,
      polygon,
      polyline {
        stroke: #fff !important;
        // fill: #fff !important;
      }
    }
  }

  &.second {
    background-color: var(--second);
    //color: white;

    // path {
    //   fill: white !important;
    // }
  }
  &.text {
    background: none;
  }

  &.danger {
    color: rgba($color: red, $alpha: 0.8);
    border-color: rgba($color: red, $alpha: 0.5);
    background-color: rgba($color: red, $alpha: 0.05);

    &:hover {
      border-color: red;
      background-color: rgba($color: red, $alpha: 0.1);
    }

    path {
      fill: red !important;
    }
  }
  &:not(.text) {
    &:hover,
    &:focus,
    &:active {
      border-color: var(--primary);
      background-color: var(--primary);
      color: white;
      transition: all 0.3s ease;

      svg {
        filter: none;
        path,
        circle,
        rect,
        polygon,
        polyline {
          stroke: #fff !important;
          // fill: #fff !important;
        }
      }
    }
  }
}

.shadow {
  box-shadow: var(--card-shadow);
}

.border {
  border: var(--border-in-light);
}

.block {
  display: block;
  width: 100%;
}

.icon-button-icon {
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 600px) {
  .icon-button {
    padding: 16px;
  }
}

.icon-button-text {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  &:not(:first-child) {
    margin-left: 5px;
  }
}
